<%--
  Created by IntelliJ IDEA.
  User: LS-Z
  Date: 2022/6/18
  Time: 9:49
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>修改书籍</title>

  <%--    bootStrop 美化界面--%>
  <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css" >

</head>
<body>

<div class="container">

  <div class="row clearfix">
    <div class="col-md-12 column">
      <div class="page-header">
        <h1>
          <small>修改书籍</small>
        </h1>
      </div>
    </div>
  </div>

  <form action="${pageContext.request.contextPath}/book/updateBook" method="post">

<%--    出现了问题 : 我们提交了修改请求 但是修改失败,初次考虑,是事务问题,配置完毕事务依旧失败--%>
<%--看一下sql语句能否执行成功  sql执行失败修改失败未完成--%>
<%--  前端传递隐藏域--%>

    <input type="hidden" name="bookID" VALUE="${QBook.bookID}">
    <div class="form-group">
      <label>书籍名称:</label>
      <input type="text" name="bookName" class="form-control" value="${QBook.bookName}" required>
      <%--            required必须写完才能提交--%>
    </div>
    <div class="form-group">
      <label>书籍数量:</label>
      <input type="text"  name="bookCounts" class="form-control" value="${QBook.bookCounts}" required >
    </div>
    <div class="form-group">
      <label>书籍描述:</label>
      <input type="text" name="detail" class="form-control"  value="${QBook.detail}" required >
    </div>
    <div class="form-group">
      <input type="submit" class="form-control"value="修改">
    </div>

  </form>

</div>

</body>
</html>
